package com.podcstr.service;

import com.podcstr.entity.Category;
import com.podcstr.service.exception.ServiceException;

import java.util.List;

/**
 * @author azim
 * @since 5/19/13 
 */
public interface CategoryService {

    void add(Category category) throws ServiceException;

    void delete(long categoryId);

    void update(Category category);

    List<Category> findAll();

    Category findCategoryById(long categoryId);

    List<Category> findParentCategories();

    List<Category> findChildCategories(long parentId);
}
